<form class="edit-user-form">
	<legend><%= user ? 'Update' : 'Create' %> User</legend>

	<label>First Name</label>
	<input type="text" name="firstName" value='<%= user ? user.get('firstName') : '' %>'/>
	
	<label>Last Name</label>
	<input type="text" name="lastName" value='<%= user ? user.get('lastName') : '' %>'/>
	
	<label>Age</label>
	<input type="text" name="age" value='<%= user ? user.get('age') : '' %>'/>
	
	<label>Gender</label>
	<input type="text" name="gender" value='<%= user ? user.get('gender') : '' %>'/>
	
	<hr/>
	
	<% if(user) { %>
		<input type="hidden" name="id" value="<%= user.id %>" />
	<% } %>			

	<button type="submit" class="btn btn-primary"><%= user ? 'Update' : 'Create' %></button>
</form>